// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from "axios";

import './assets/rem.js'
import './assets/reset.css'

import {Button,Row,Col,Search,Tab,Tabs,Swipe, SwipeItem,Grid, GridItem,PullRefresh
  ,Tabbar, TabbarItem,Sticky,NavBar,Icon,Popup,TreeSelect,Card,List,Uploader,Field
  ,Collapse, CollapseItem,Cell, CellGroup,NumberKeyboard,Image as VanImage,Form } from 'vant'
Vue.use(Button).use(Row).use(Col).use(Search).use(Tab).use(Tabs).use(Swipe).use(SwipeItem)
.use(Grid).use(GridItem).use(PullRefresh).use(Tabbar).use(TabbarItem).use(Sticky).use(NavBar).use(Icon)
.use(Popup).use(TreeSelect).use(Card).use(List).use(Uploader).use(Field).use(Collapse).use(CollapseItem)
.use(Cell).use(CellGroup).use(NumberKeyboard).use(VanImage).use(Form)

const base_url = 'http://192.168.31.38:8080'
Vue.prototype.URL = base_url

Vue.prototype.axios = axios;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
